﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace THE_WIND_RISES.Common.Domans.BasicInformation.warehouses
{
    /// <summary>
    /// 仓库明细表
    /// </summary>
    public class WHDetail : Entity
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int WHDetailId { get; set; }

        /// <summary>
        /// 行编码
        /// </summary>
        public string LineWHDetailNum { get; set; }

        /// <summary>
        /// 物料编码
        /// </summary>
        public string SuppliesNum { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public string SuppliesName { get; set; }

        /// <summary>
        /// 库存来源
        /// </summary>
        public string SourceAddr { get; set; }

        /// <summary>
        /// 单据编码
        /// </summary>
        public string BillsNum { get; set; }

        /// <summary>
        /// 数量
        /// </summary>
        public int WHDetailNum { get; set; }

        /// <summary>
        /// 库存成本
        /// </summary>
        public double WHDetailCost { get; set; }

        /// <summary>
        /// 批号
        /// </summary>
        public string BatchNum { get; set; }

        /// <summary>
        /// 效期
        /// </summary>
        public int ValidDays { get; set; }

        /// <summary>
        /// 生产日期
        /// </summary>
        public DateTime WHDetailTakeTime { get; set; }

        /// <summary>
        /// 失效日期
        /// </summary>
        public DateTime WHDetailLoseTime { get; set; }

        /// <summary>
        /// 保留
        /// </summary>
        public string WHDetailRetain { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        public string WHDetailRemark { get; set; }

        /// <summary>
        /// 是否删除
        /// </summary>
        public bool IsDelWHDetail { get; set; }
    }
}
